select `vehicles`.*, count(fuel_types.id) as fuel_count, fuel_types.fuel_type from `vehicles` inner join `models` on `vehicles`.`model_id` = `models`.`id` inner join `makes` on `vehicles`.`make_id` = `makes`.`id` inner join `body_style_groups` on `vehicles`.`body_style_group_id` = `body_style_groups`.`id` inner join `users` on `vehicles`.`user_id` = `users`.`id` inner join `fuel_types` on `vehicles`.`fuel_id` = `fuel_types`.`id` where (`vehicles`.`status_id` = ? and `vehicles`.`created_at` > DATE_SUB(NOW(),INTERVAL 2 YEAR)) and `model_name` = ? and `make_name` = ? and `body_style_group_name` = ? and `users`.`name` = ? and `fuel_types`.`fuel_type` != ? group by `fuel_types`.`fuel_type` order by `fuel_count` desc
Array
(
[0] => 1
[1] => WRX STI
[2] => Subaru
[3] => Sedan
[4] => Westminster Toyota
[5] =>
)
2.66
select *, (select count(*) from `vehicles` inner join `users` on `users`.`id` = `vehicles`.`user_id` where `provinces`.`id` = `users`.`province_id` and `vehicles`.`status_id` = ? and `vehicles`.`created_at` > DATE_SUB(NOW(),INTERVAL 2 YEAR)) as `vehicles_count` from `provinces` order by `province_name` asc
Array
(
[0] => 1
)
689.76
select `makes`.* from `makes` inner join `vehicles` on `vehicles`.`make_id` = `makes`.`id` group by `makes`.`id`
Array
(
)
74.51
select count(*) as aggregate from `vehicles` inner join `models` on `vehicles`.`model_id` = `models`.`id` inner join `makes` on `vehicles`.`make_id` = `makes`.`id` inner join `body_style_groups` on `vehicles`.`body_style_group_id` = `body_style_groups`.`id` inner join `users` on `vehicles`.`user_id` = `users`.`id` where (`vehicles`.`status_id` = ? and `vehicles`.`created_at` > DATE_SUB(NOW(),INTERVAL 2 YEAR)) and `model_name` = ? and `make_name` = ? and `body_style_group_name` = ? and `users`.`name` = ? and `vehicles`.`created_at` > DATE_SUB(NOW(),INTERVAL 2 YEAR)
Array
(
[0] => 1
[1] => WRX STI
[2] => Subaru
[3] => Sedan
[4] => Westminster Toyota
)
1.07
select `vehicles`.* from `vehicles` inner join `models` on `vehicles`.`model_id` = `models`.`id` inner join `makes` on `vehicles`.`make_id` = `makes`.`id` inner join `body_style_groups` on `vehicles`.`body_style_group_id` = `body_style_groups`.`id` inner join `users` on `vehicles`.`user_id` = `users`.`id` where (`vehicles`.`status_id` = ? and `vehicles`.`created_at` > DATE_SUB(NOW(),INTERVAL 2 YEAR)) and `model_name` = ? and `make_name` = ? and `body_style_group_name` = ? and `users`.`name` = ? and `vehicles`.`created_at` > DATE_SUB(NOW(),INTERVAL 2 YEAR) order by `vehicles`.`created_at` desc limit 15 offset 0
Array
(
[0] => 1
[1] => WRX STI
[2] => Subaru
[3] => Sedan
[4] => Westminster Toyota
)
1.14
select `vehicles`.* from `vehicles` inner join `models` on `vehicles`.`model_id` = `models`.`id` inner join `makes` on `vehicles`.`make_id` = `makes`.`id` inner join `body_style_groups` on `vehicles`.`body_style_group_id` = `body_style_groups`.`id` inner join `users` on `vehicles`.`user_id` = `users`.`id` where (`vehicles`.`status_id` = ? and `vehicles`.`created_at` > DATE_SUB(NOW(),INTERVAL 2 YEAR)) and `model_name` = ? and `make_name` = ? and `body_style_group_name` = ? and `users`.`name` = ? and (`users`.`featured` = ? or `vehicles`.`featured` = ?) order by RAND() limit 8
Array
(
[0] => 1
[1] => WRX STI
[2] => Subaru
[3] => Sedan
[4] => Westminster Toyota
[5] => 1
[6] => 1
)
1.02
Sedan Subaru WRX STI Used Cars Preowned Vehicles
Filter
1 Vehicles were found with the given criteria